package com.ccrfid.rmc6.repository.mattress;

import com.ccrfid.rmc6.entity.mattress.BedHistoryEntity;
import org.springframework.data.repository.Repository;

public interface BedHistoryRepository extends Repository<BedHistoryEntity, Long> {

    BedHistoryEntity getByBedSnAndStopTimeIsNull(String bedSn);

    BedHistoryEntity getTopByBedSnAndStopTimeIsNull(String bedSn);

    BedHistoryEntity save(BedHistoryEntity entity);
}
